package com.party.core.model.crowdfund;

import java.io.Serializable;

/**
 * @Author: yangshoukun
 * @Date: 2018/6/12 18:22
 */
public class ProjectDetailCountInput implements Serializable {
    private static final long serialVersionUID = 3802145664191534974L;
    // 事件id
    private String eventId;
    // 事件名称
    private String eventName;
    // 报名开始查询时间
    private String applyDateStart;
    // 报名结束查询时间
    private String applyDateEnd;
    // 时间段开始天数
    private Integer qureyDayStart;
    // 时间段结束天数
    private Integer qureyDayEnd;

    // 查询时间, 第几个时间段
    private Integer period;

    // 用于处理转移来的数据的时间(支持时间小于创建时间)
    private String eventCreatDate;

    public String getEventCreatDate() {
        return eventCreatDate;
    }

    public void setEventCreatDate(String eventCreatDate) {
        this.eventCreatDate = eventCreatDate;
    }

    public Integer getPeriod() {
        return period;
    }

    public void setPeriod(Integer period) {
        this.period = period;
    }

    public String getEventName() {
        return eventName;
    }

    public void setEventName(String eventName) {
        this.eventName = eventName;
    }

    public String getApplyDateStart() {
        return applyDateStart;
    }

    public void setApplyDateStart(String applyDateStart) {
        this.applyDateStart = applyDateStart;
    }

    public String getApplyDateEnd() {
        return applyDateEnd;
    }

    public void setApplyDateEnd(String applyDateEnd) {
        this.applyDateEnd = applyDateEnd;
    }

    public Integer getQureyDayStart() {
        return qureyDayStart;
    }

    public void setQureyDayStart(Integer qureyDayStart) {
        this.qureyDayStart = qureyDayStart;
    }

    public Integer getQureyDayEnd() {
        return qureyDayEnd;
    }

    public void setQureyDayEnd(Integer qureyDayEnd) {
        this.qureyDayEnd = qureyDayEnd;
    }

    public String getEventId() {
        return eventId;
    }

    public void setEventId(String eventId) {
        this.eventId = eventId;
    }

    @Override
    public String toString() {
        return "ProjectDetailCountInput{" +
                "eventId='" + eventId + '\'' +
                ", eventName='" + eventName + '\'' +
                ", applyDateStart='" + applyDateStart + '\'' +
                ", applyDateEnd='" + applyDateEnd + '\'' +
                ", qureyDayStart=" + qureyDayStart +
                ", qureyDayEnd=" + qureyDayEnd +
                ", period=" + period +
                ", eventCreatDate='" + eventCreatDate + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ProjectDetailCountInput)) return false;

        ProjectDetailCountInput that = (ProjectDetailCountInput) o;

        if (eventId != null ? !eventId.equals(that.eventId) : that.eventId != null) return false;
        if (eventName != null ? !eventName.equals(that.eventName) : that.eventName != null) return false;
        if (applyDateStart != null ? !applyDateStart.equals(that.applyDateStart) : that.applyDateStart != null)
            return false;
        if (applyDateEnd != null ? !applyDateEnd.equals(that.applyDateEnd) : that.applyDateEnd != null) return false;
        if (qureyDayStart != null ? !qureyDayStart.equals(that.qureyDayStart) : that.qureyDayStart != null)
            return false;
        if (qureyDayEnd != null ? !qureyDayEnd.equals(that.qureyDayEnd) : that.qureyDayEnd != null) return false;
        if (period != null ? !period.equals(that.period) : that.period != null) return false;
        return eventCreatDate != null ? eventCreatDate.equals(that.eventCreatDate) : that.eventCreatDate == null;
    }

    @Override
    public int hashCode() {
        int result = eventId != null ? eventId.hashCode() : 0;
        result = 31 * result + (eventName != null ? eventName.hashCode() : 0);
        result = 31 * result + (applyDateStart != null ? applyDateStart.hashCode() : 0);
        result = 31 * result + (applyDateEnd != null ? applyDateEnd.hashCode() : 0);
        result = 31 * result + (qureyDayStart != null ? qureyDayStart.hashCode() : 0);
        result = 31 * result + (qureyDayEnd != null ? qureyDayEnd.hashCode() : 0);
        result = 31 * result + (period != null ? period.hashCode() : 0);
        result = 31 * result + (eventCreatDate != null ? eventCreatDate.hashCode() : 0);
        return result;
    }

}
